import http from '../utils/http'

const findAllSiteCoordinate = () => http({ url: '/interface?Module=NoSession&Action=findAllSiteCoordinate' })
const findAllCarCoordinate = () => http({ url: '/interface?Module=NoSession&Action=findAllCarCoordinate' })
const findAllSecurityEvents = () => http({ url: '/interface?Module=NoSession&Action=findAllSecurityEvents&is_dealt=true' })
const findAllStaff = () => http({ url: '/interface?Module=NoSession&Action=findAllStaff' })
const findOneStaffInfo = (id) => http({ url: '/interface?Module=NoSession&Action=findOneStaffInfo&_id=' + id })
const findAllCar = () => http({ url: '/interface?Module=NoSession&Action=findAllCar' })
const findOneCarInfo = (id) => http({ url: '/interface?Module=NoSession&Action=findOneCarInfo&_id=' + id })
const getAllDepart = () => http({ url: '/interface?Module=NoSession&Action=getAllDepart' })
const getAllSiteByDep = (id) => http({ url: '/interface?Module=NoSession&Action=getAllSiteByDep&depId=' + id })
const getSiteAdminUrl = id => http({ url: '/action?Action=monitorLogin&siteId=' + id })

export default {
    findAllSiteCoordinate,
    findAllCarCoordinate,
    findAllSecurityEvents,
    findAllStaff,
    findOneStaffInfo,
    findAllCar,
    findOneCarInfo,
    getAllDepart,
    getAllSiteByDep,
    getSiteAdminUrl
}